<%@page import="java.io.Console"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="beans.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%	
		
		boolean flag;
		UserDAO userdao=new UserDAO();			
		flag=userdao.insertphoto(request);
		//String userno3=request.getParameter("userno");这句出错，因为前面表单中使用了multipart/form-data，所以用request接不到
		if(flag){
			//session.setAttribute("userno",userno);//接不到，所以无法设置，到insertphoto里去设置setAttribute
			response.sendRedirect("main.jsp");
		}else{
			response.sendRedirect("error.jsp");
		}
		
	%>
	

	
	
</body>
</html>